/*
 * ConsoleDumper.java   2008/08/19
 *
 * Copyright 2008 Web & Zen Multimedia, All rights reserved.
 * Use is subject to license terms.
 */
package it.wzm.lightweightlog;

import it.wzm.lightweightlog.annotation.OpeningProcessor;
import java.util.Properties;

/**
 * This Dumper serves as facility for writing entry to System log, any Dumper logging to System.out or System.err should extend this class.
 */
@OpeningProcessor(active=false)
abstract class ConsoleDumper extends Dumper {
    
	/**
     * Initialize Dumper with a custom made set of properties
     * @param name The name of the Dumper as declared in dumper.properties
     * @param p Properties
     */
    public ConsoleDumper(String name, Properties p) {
        super(name,p);
    } 
	
    /* (non-Javadoc)
	 * @see it.wzm.lightweightlog.Dumper#close()
	 */
	@Override
	public void close() throws DumperException {
	}

	/* (non-Javadoc)
	 * @see it.wzm.lightweightlog.Dumper#dump(it.wzm.lightweightlog.Entry)
	 */
	@Override
	public <E extends Entry> void dump(E e) throws DumperException {	
	}

	/* (non-Javadoc)
	 * @see it.wzm.lightweightlog.Dumper#open()
	 */
	@Override
	public void open() throws DumperException {
	}

	/**
	 * As requested by serialization
	 */
	private static final long serialVersionUID = -6630786922506091938L;
   
    /**
     * This method always return true
     */
    @Override
    public boolean isOpen() {
    	return true;
    }

    
}
